/**
 * 首页接口
 */
const http = uni.$u.http

// 获取公告
export const getNotice = (data) => http.post('/mini_front/notice/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})

// 获取AD
export const getAD = (data) => http.post('/mini_front/ad/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})
// 获取群类型
export const getGoupCate = (data) => http.post('/mini_front/group_cate/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})
// 获取群列表
export const getGoup = (data) => http.post('/mini_front/group/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})
// 公告计数
export const noticeCount = (data) => http.post('/mini_front/notice_count/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded'
	}
})
// 入群申请
export const userGroupAdd = (data) => http.post('/mini_front/user_group_add/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
// 重新入群申请
export const ownAddSecond = (data) => http.post('/mini_front/own_add_second/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})
// 去聊天
export const ownToChat = (data) => http.post('/mini_front/own_to_chat/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})

// 去聊天
export const user_in_group = (data) => http.post('/mini_front/user_in_group/ ', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})

// 登录后查询用户在群状态
export const userGroupCheck = (data) => http.post('/mini_front/user_group_check/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})

// 微信订阅进群通知消息
export const wxSubscribe = (data) => http.post('/mini_front/wx_subscribe/', data, {
	header: {
		'Content-Type': 'application/x-www-form-urlencoded',
	}
})